package com.heima.wemedia.fegin;

import com.heima.apis.wemedia.IRegisterWmUserClient;
import com.heima.model.admin.pojos.ApUserRealname;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.pojos.ApUser;
import com.heima.wemedia.service.WmUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shiminghui
 * @date 2024/12/18 21:06
 * @description: TODO
 */
@RestController
@RequestMapping("/api/v1/wmuser")
public class RegisterWmUserClient implements IRegisterWmUserClient {

    @Autowired
    private WmUserService wmUserService;

    @PostMapping("/add")
    public ResponseResult register(@RequestBody ApUser apUser) {
        ResponseResult result = wmUserService.register(apUser);
        return result;
    }

}
